<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Password Protection:  Password Prompt</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT="no-cache">
<META NAME="description" CONTENT="If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script (this page)  This script will just take you to [password you enter].html  This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory.  As an added bonus, it's only 8 lines!  Unlike the others, the password is the protected filename without the .html ending.">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function checkPasswd() {
var password = ''
password=prompt('Please enter your password:','Hint:  Try typing prompt-in');
if (password != null) {
location.href= password + ".html";
   }
}
// End -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff onLoad="checkPasswd()">

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /passwords/"><font color="#FF0000">Password Protection</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Password Prompt</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE=" helvetica,arial,geneva">
<br>
<br>
<!--  Description  -->
If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script (this page)  This script will just take you to 
[password you enter].html  This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory.  As an added bonus, it's only 8 lines!  Unlike the others, the password is the protected filename without the .html ending.<br><hr>
</td></tr>
</table>
<!--  Demonstration  -->
<BODY>
<CENTER>
<P>
<BR>
<P>

	

<P>

</CENTER>